using System.Collections.Generic;

namespace DapperExtensionsNew.Data
{
	public class DynanicParameters
	{
		private readonly List<ParameterInfo> _parameters = new List<ParameterInfo>(16);

		public void Add(string name, object value = null)
		{
			_parameters.Add(new ParameterInfo
			{
				Name = name,
				Value = value
			});
		}

		public IEnumerable<ParameterInfo> GetParameters()
		{
			return _parameters;
		}
	}
}
